<template>
  <div class="about">
    <el-button type="primary"
               plain
               round
               @click="over"
               icon="el-icon-sugar">你好</el-button>
  </div>
</template>
<script>
export default {
  name: "about",
  methods: {
    over (e) {
      console.log(e)
      // this.$Message({
      //   message: '居中的文字',
      //   center: true,
      //   type: 'warning'
      // })
      this.$confirm('此操作将永久删除该文件, 是否继续?', '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'warning',
        center: true
      }).then(() => {
        this.$message({
          type: 'success',
          message: '删除成功!'
        });
      }).catch(() => {
        this.$message({
          type: 'info',
          message: '已取消删除'
        });
      });

    }
  },
}
</script>
